package sctu.edu.java.year2016.team04.yanghuilin.day20160529.chapter8_3;

/**
 * Created by dell on 2016/5/29.
 * 尝试创建一个父类和子类，分别创建构造方法，然后向父类和子类添加成员变量和方法，并总结构建子类对象时的顺序。
 */
public class Father {

    void family(){
        String f = "Everyone has family.";
        System.out.println(f);
    }

    public static void main(String[] args) {

        People people = new People();

        people.exercise();
        people.work();

        System.out.println("The height is " + people.height + "cm");
        System.out.println("The weight is " + people.weight + "kg");

    }
}
